<?php

/**
 * Entry page to the phpRaise Unit Testing
 *
 * @author Sam-Mauris Yong / hellclanner at live dot com
 * @license http://www.opensource.org/licenses/bsd-license New BSD License
 * @package Raise.UnitTest
 * @version 1.4
 */

define('RAISE_INCLUDE', 'INCLUDE');

ini_set('zlib.output_compression', '1');

if(file_exists(RAISE_INCLUDE)){
    $file = file_get_contents(RAISE_INCLUDE);
    if(strtolower(basename($file)) == 'raise.php'){
        include($file);
    }
}

// Determine if we need to run the first run page
if(class_exists('Raise')){
    
    Raise::load('core.RaiseCompatibility');
    include('RaiseTestPanel.php');
    RaiseTestPanel::run();
    
}else{

    // phpRaise is not included, so we must prompt the user
    include('RaiseTestFirstRun.php');
    RaiseTestFirstRun::run();

}